/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.yandex.collections;

/**
 *
 * @author vindex10
 */
public class Helpers {
  
  private Helpers() {
    
  }
  
  public static double divideInt(final int a, final int b) {
    return Math.exp(Math.log(a) - Math.log(b));
  }
  
  public static int intPow(final int a, final int p) {
    int res = 1;
    for (int i = 0; i < p; i++) {
      res *= a;
    }
    return res;
  }
}
